<html>
<head><meta charset="utf-8"><title>Issue #1165 (local items support) · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Issue.20.231165.20(local.20items.20support).html">Issue #1165 (local items support)</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="208575217"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Issue%20%231165%20%28local%20items%20support%29/near/208575217" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Brennan Vincent <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Issue.20.231165.20(local.20items.20support).html#208575217">(Aug 31 2020 at 15:45)</a>:</h4>
<p>Hi all, I am constantly hampered in my company's codebase by <code>use</code> statements in functions not working in rust-analyzer. I'm willing to spend some time working to fix this, if anyone on the r-a team is willing to give me a bit of pointers/mentoring.</p>
<p>Do folks think this is feasible, or would the fix to that issue be a really major project?</p>



<a name="208575999"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Issue%20%231165%20%28local%20items%20support%29/near/208575999" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Issue.20.231165.20(local.20items.20support).html#208575999">(Aug 31 2020 at 15:50)</a>:</h4>
<p>It is a rather large task yeah</p>



<a name="208576058"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Issue%20%231165%20%28local%20items%20support%29/near/208576058" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Issue.20.231165.20(local.20items.20support).html#208576058">(Aug 31 2020 at 15:51)</a>:</h4>
<p>Not insurmountably larger, rust-analyzer is small enough for this to be doable in a reasonable time frame, unlike rustc</p>



<a name="208576123"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Issue%20%231165%20%28local%20items%20support%29/near/208576123" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Issue.20.231165.20(local.20items.20support).html#208576123">(Aug 31 2020 at 15:51)</a>:</h4>
<p>But it does require somewhat deep understanding of how things work today, and a fair amount of time (I'd estimate this as 1/2 weeks maybe?)</p>



<a name="208576282"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Issue%20%231165%20%28local%20items%20support%29/near/208576282" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Issue.20.231165.20(local.20items.20support).html#208576282">(Aug 31 2020 at 15:52)</a>:</h4>
<p>Let me write-up an <code>Design</code> issue for this...</p>



<a name="208576939"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Issue%20%231165%20%28local%20items%20support%29/near/208576939" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Brennan Vincent <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Issue.20.231165.20(local.20items.20support).html#208576939">(Aug 31 2020 at 15:57)</a>:</h4>
<p>Sounds good; I'm interested to see the issue once you write it up.</p>



<a name="208578505"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Issue%20%231165%20%28local%20items%20support%29/near/208578505" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pksunkara <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Issue.20.231165.20(local.20items.20support).html#208578505">(Aug 31 2020 at 16:06)</a>:</h4>
<p><span class="user-mention" data-user-id="133169">@matklad</span> Do you think the issue of glob imports not being referenced correctly can be fixed alongside this?</p>



<a name="208579085"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Issue%20%231165%20%28local%20items%20support%29/near/208579085" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Issue.20.231165.20(local.20items.20support).html#208579085">(Aug 31 2020 at 16:09)</a>:</h4>
<p><span class="user-mention" data-user-id="254853">@pksunkara</span> what issue is that? I mean, maybe matklad knows it, but it's not clear to me (but probably, it's unrelated)</p>



<a name="208580624"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Issue%20%231165%20%28local%20items%20support%29/near/208580624" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Issue.20.231165.20(local.20items.20support).html#208580624">(Aug 31 2020 at 16:19)</a>:</h4>
<p><span class="user-mention" data-user-id="232844">@Brennan Vincent</span> filed  <a href="https://github.com/rust-analyzer/rust-analyzer/issues/5922">https://github.com/rust-analyzer/rust-analyzer/issues/5922</a></p>



<a name="208585108"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Issue%20%231165%20%28local%20items%20support%29/near/208585108" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pksunkara <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Issue.20.231165.20(local.20items.20support).html#208585108">(Aug 31 2020 at 16:48)</a>:</h4>
<p><span class="user-mention" data-user-id="129457">@Florian Diebold</span> it's about glob imports not working when imported locally. I thought it could be a separate issue but looks like it isn't and the GitHub issue created above covers it. Sorry about being a bit vague before.</p>



<a name="208585131"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Issue%20%231165%20%28local%20items%20support%29/near/208585131" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Issue.20.231165.20(local.20items.20support).html#208585131">(Aug 31 2020 at 16:48)</a>:</h4>
<p>ok yeah then it's the same thing</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>